<?php
	$protectid="7"; 
	include("../protect.php");
	
	include_once("../../config.inc.php");	
	
	$Lang=$_GET['Lang']?$_GET['Lang']:"cn";
	
	if($_REQUEST['act'] == "advsearch")
	{
	
		$strSqlWhere =" AND content like '%".$_POST['Tag']."%'";
		$Flag = true;
	}
	else
	{
		$strSqlWhere =  " ORDER BY ID DESC ";
		//$strSqlWhere ='';
		$Flag = false;
	}	
	include_once(CFG_LIB_DIR."manage_page.php");	
	$objManPage = new clsManagePage();
	
	//分页获取数据
	$InfoResult = $objManPage->GetResult('*', '`'.con_strPREFIX.'log`  ', $strSqlWhere, 20);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrator's Control Panel</title>
<?php include_once("../common/files.php"); ?>
</head>

<body id="main">
<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td><h1>积分查看</h1></td>
		<td class="actions">
			<table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
				<tr>
					<td class="active"><a href="index.php" class="view">浏览积分</a></td>
				</tr>
			</table>
		</td>
	</tr>
</table>

		</td>
	</tr>
</table>

<form id="advsearch" name="advsearch" method="post" action="index.php">
  <table cellspacing="0" cellpadding="0" width="100%"  class="maintable" id="feedbackTable">
    <tr>
      <th width="20%" style="text-align:left;">搜索关键字</th>
      <td><input name="Tag" type="text" id="Tag" size="30" value="" />   <input name="act" id="act" type="hidden" value="advsearch" />
  <input type="submit" name="thevaluesubmit" value="开始搜索" class="submit" />   </td>
    </tr>   
  </table>
  
</form>



<form method="post" action="index_ok.php"  onsubmit="return validManage('Item', 'SortNum', 'SelectedID', 'SelectedSort');">
<?php
	//输出 Manage Grid
	include_once(CFG_LIB_DIR.'manage.php');
	$objMan = new clsManage();
	
	$arrColumnTips = array(
										array("tips" => "选择", "width" => "10%"),
										array("tips" => "ID", "width" => "10%"),
										array("tips" => "排序", "width" => "10%"),
										//array("tips" => "名称", "width" => "15%"),
										array("tips" => "描述", "width" => "65%"),
										//array("tips" => "LOGO", "width" => "30%"),
										array("tips" => "产生日期", "width" => "15%"),
										//array("tips" => "执行操作", "width" => "20%")
									 );
									 
	$arrColumn = array(
										array("CheckBox" => "ID"),
										array("Text" => "ID"),
										//array("Text" => "name"),
										array("Sort" => "SortNum"),
										
										array("Text" => "content"),
										//array(
											//	"Tmp" => "<img src=\"../pic.php?imagename=../uploadfile/link/{LogoPic}&imagewidth=88&imageheight=30&cuteit=0\" width=\"88\" height=\"31\" />",
												//	),
										array("Date" => "createtime"),
										//array("Tmp" => "<sapn class=\"buttons\"><input type=\"button\" value=\"编辑\" class=\"submit\" onclick=\"PopupWindow('link.php?act=modify&id={LinkID}', 800, 600)\"></span>")
									 );
	
	echo $objMan->strHead($arrColumnTips);
	echo $objMan->strMiddle($InfoResult, $arrColumn);
	echo $objMan->strLast();
	
	
	//输出批量操作
	include_once(CFG_LIB_DIR.'batch_operation.php');
	$objBO = new clsBatchOperation();
	
	$arrOperation = array ("RevChk",  "Del");
	$objBO->strCateTable = "linkcategory";
	$arrBO = $objBO->strBottom($arrOperation, "Sort");
	
	echo $arrBO[0].$arrBO[1];
	
	
	//输出分页
	echo $objManPage->ShowLink();
?>

<div class="buttons">
	<input type="hidden" name="SelectedID" id="SelectedID" />
	<input type="hidden" name="SelectedSort" id="SelectedSort" />
  <input type="submit" value="提交保存" class="submit" />
  <input type="reset" value="重置" />
</div>
</form>

<br />
<?php include "../bottom.php"; ?>
</div>

</body>
</html>